﻿@using ThuySan.Areas.Backend.Models
@model ThuySan.Models.PropertyModel
@{
    Layout = "~/Areas/Backend/Views/Shared/_Layout.cshtml";

    Header header = new Header {
                                       Common = "ViewUserControl_property_Add",
                                       CurentCommon = "property",
                                       PageHeader = "Add property",
                                       Menulv1 = "01",
                                       Menulv2 = "0103"
                               };
    ViewData[Header.Key] = header;
    ViewBag.Title = "Add property - Admin Control Panel";
    Html.EnableClientValidation();
}
<div class="content-box">
    <div class="content-box-header">
        <h3>
            Add Property</h3>
    </div>
    <div class="content-box-content">
        @using (Html.BeginForm("Add", "Property", FormMethod.Post, new {
                                                                               enctype = "multipart/form-data"
                                                                       }))
        {
            @Html.ValidationMessage("error")
            <div class="input-item">
                <label>
                    Name</label>
                @Html.TextBoxFor(c => c.Name, new {
                                                          @class = "text-input medium-input"
                                                  })
                @Html.ValidationMessageFor(c => c.Name)
            </div>
            <div class="input-item">
                <label>
                    Group Name</label>
                @Html.TextBoxFor(c => c.GroupName, new {
                                                               @class = "text-input medium-input"
                                                       })
                @Html.ValidationMessageFor(c => c.GroupName)
            </div>
            <div class="input-item">
                <label>
                    Prority</label>
                @Html.TextBoxFor(c => c.Priority, new {
                                                              @class = "text-input"
                                                      })
                @Html.ValidationMessageFor(c => c.Priority)
            </div>
            <div class="input-item">
                <label>
                    Is Bit</label>
                @Html.CheckBoxFor(c => c.IsBit)
                @Html.ValidationMessageFor(c => c.IsBit)
            </div>
            <div class="input-item">
                <label>
                    Is Number</label>
                @Html.CheckBoxFor(c => c.IsNumber)
                @Html.ValidationMessageFor(c => c.IsNumber)
            </div>
            <input type="submit" value="Update" class="button" />
            <input type="reset" value="Reset" class="button" />
        }
    </div>
</div>